//读取本地存储域名地址
export const getBaseUrl = () => {
	let BASE_IP = '',
		BASE_PORT = '';
	try {
		BASE_IP = uni.getStorageSync('BASE_IP');
		BASE_PORT = uni.getStorageSync('BASE_PORT')
	} catch (e) {
		//TODO handle the exception
	}
	return {
		BASE_IP,
		BASE_PORT
	}
}
//储存本地域名地址
export const setBaseUrl = (ip, port) => {
	try {
		uni.setStorageSync('BASE_IP', ip);
		uni.setStorageSync('BASE_PORT', port)
	} catch (e) {
		//TODO handle the exception
	}
}

//获取用户信息
export const getUserInfo = () => {
	let userInfo = {};
	try {
		userInfo = uni.getStorageSync('userInfo');
	} catch (e) {
		//TODO handle the exception
	}
	return userInfo
}
